package com.yaorange.container;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Author 作者
 * @Version 1.0
 * @Date 2025/06/23
 * @Description 权限容器
 */
@Component
public class PermissionContainer {
    private static final Map<String, Set<String>> PERMISSION_CONTAINER = new HashMap<>();

    public void put(String key, Set<String> value){
        PERMISSION_CONTAINER.put(key, value);
    }

    public Set<String> get(String key){
        return PERMISSION_CONTAINER.get(key);
    }


}
